<?php
session_start();
$cart=$_SESSION['icart'];
$id=$_GET['productid'];
if($id == 0)
{
	unset($_SESSION['icart']);
	header("location:index.php");
}
else
{
unset($_SESSION['icart'][$id]);
header("location:cart.php");
}
exit();
?>